package com.fa.wisdom.ui;

import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import com.fa.wisdom.R;
import com.fa.wisdom.base.BaseActivity;
import com.fa.wisdom.base.Constant;
import com.fa.wisdom.utils.TitleBuilder;
import com.tuya.appsdk.sample.device.mgt.control.activity.DeviceMgtControlActivity;
import com.tuya.appsdk.sample.device.mgt.list.activity.DeviceMgtListActivity;
import com.tuya.appsdk.sample.device.mgt.list.adapter.DeviceMgtAdapter;
import com.tuya.appsdk.sample.device.mgt.list.tag.DeviceListTypePage;
import com.tuya.smart.android.blemesh.api.ITuyaBlueMeshDevice;
import com.tuya.smart.android.demo.camera.CameraPanelActivity;
import com.tuya.smart.home.sdk.TuyaHomeSdk;
import com.tuya.smart.home.sdk.bean.HomeBean;
import com.tuya.smart.home.sdk.callback.ITuyaHomeResultCallback;
import com.tuya.smart.sdk.bean.DeviceBean;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

import static com.tuya.smart.android.demo.camera.utils.Constants.INTENT_DEV_ID;

public class PublicActivity extends BaseActivity {
    @Override
    protected boolean isStatusBarBlack() {
        return true;
    }

    @Override
    public void setListen() {
        String detail=getIntent().getStringExtra("name");
        new TitleBuilder(this).setTitleText(detail)
                .setLeftIcoListening(new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        finish();
                    }
                });
//        Intent intent = new Intent(this, DeviceMgtControlActivity.class);
//        intent.putExtra("deviceId", "6c8ebce276d1b5d15eggcw");
//
//        startActivity(intent);
    }
    @Override
    public void setTitleBarColor() {

    }

    @Override
    public int intiLayout() {
        return R.layout.activity_public;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }
}
